<?php

namespace common\helpers;

abstract class Constant
{
    //数字常量
    const ONE = 1;
    const TWO = 2;
    const THREE = 3;
    const FOUR = 4;
    const FIVE = 5;
    const SIX = 6;
    const SEVEN = 7;
    const EIGHT = 8;
    const NINE = 9;
    const TEN = 10;
    const ELEVEN = 11;
    const TWELVE = 12;
    const TWENTY_FOUR = 24;

    //页码常量
    const DEFAULT_PAGE_NUM = 1;
    const DEFAULT_PAGE_SIZE = 20;
    const INDEX_PAGE_SIZE = 10;
    const PAGE_SIZE = 20;

    //时间常量
    const HOURS_OF_ONE_DAY = 24;          //每天小时数
    const SECONDS_OF_ONE_MINUTE = 60;     //每分钟秒数
    const SECONDS_OF_ONE_HOUR = 3600;     //每小时秒数
    const SECONDS_OF_ONE_DAY = 86400;     //每天秒数
    const PRECISION_ONE = 1;          //小数点后一位
    const PRECISION_TWO = 2;          //小数点后两位

    const TOKEN_EXPIRED_LONG = 86400;

}